package com.antcom.antread.common.core.baseRest.domain;

/**
 * 返回结果集
 *
 * @Author 中国蚂蚁技术有限公司
 * @create 2020/11/29 9:42
 */
public class GeneralSet {

    /**
     *  返回说明
     */
    private String msg;

    /**
     *  返回code
     */
    private String code;

    /**
     *  返回结果
     */
    private Object data;

    /**
     * 时间戳
     */
    private Long timestamp;

    public GeneralSet(){
        super();
    }

    public GeneralSet(String msg,String code){
        this.msg = msg;
        this.code = code;
        this.timestamp = System.currentTimeMillis();
    }

    public GeneralSet(String msg,String code,Object data){
        this.code = code;
        this.data = data;
        this.msg = msg;
        this.timestamp = System.currentTimeMillis();
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }
}
